home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / guest-0.000 / guest-0 / guest-0.2 / Makefile < prev    next >
Makefile  |  1995-05-08  |  866b  |  50 lines

  1. # The directory and filename of the default menu.
  2. MENUFILE = /home/guest/guest.menu
  3.  
  4. # Directory to install everything to
  5. BINDIR = /usr/local/bin
  6.  
  7. INSTALL = install
  8. BINFLAGS = -m 755 -s
  9.  
  10. RM = rm -f
  11.  
  12. CC = gcc
  13. LD = ld
  14.  
  15. # Edit the OPT flags to suit your system, these are for a 486 running gcc-2.6.x
  16. OPT = -O3 -m486
  17.  
  18. # Debug is for debugging purposes (duh)
  19. # DEBUG = -g -DDEBUG
  20. CFLAGS = $(OPT) -Wall $(DEBUG)
  21.  
  22. LDFLAGS = -s
  23. LIBRARIES = -lncurses
  24.  
  25. SOURCES = main.c parse.c string.c screen.c misc.c
  26.  
  27. OBJECTS = main.o parse.o string.o screen.o misc.o
  28.  
  29. .c.o:
  30.         $(CC) $(CFLAGS) -c    -o $*.o $<
  31.  
  32. guest:        $(OBJECTS)
  33.         $(RM) $@
  34.         $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBRARIES)
  35.  
  36. install:
  37.         $(INSTALL) $(BINFLAGS) guest $(BINDIR)/guest
  38.  
  39. clean:
  40.         $(RM) guest $(OBJECTS)
  41.  
  42. depend:        dep
  43.  
  44. dep:
  45.         $(CC) -E -M $(SOURCES) > .depend
  46.  
  47. ifeq (.depend,$(wildcard .depend))
  48. include .depend
  49. endif
  50.